<? if(!defined('IN_TIPASK')) exit('Access Denied'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"><? $user=$this->user; $setting=$this->setting; ?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tipask's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?=TIPASK_CHARSET?>">
<link media="all" type="text/css" href="css/common/admin/admincp.css" rel="stylesheet"/>
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/admin.js" type="text/javascript"></script>
</head>
<body>

<div id="append">
</div>

<div class="container"><? if(isset($message)) { $type=isset($type)?$type:'correctmsg';  ?><div class="<?=$type?>"><p><?=$message?></p></div><? } ?><div class="note fixwidthdec">
<p class="i">
1、替换前的内容可以使用限定符 <?=x?> 以限定相邻两字符间可忽略的文字，x 是忽略字符的个数。如 "a{1}s{2}s"(不含引号) 可以过滤 "ass" 也可过滤 "axsxs" 和 "axsxxs" 等等。<br /><br />
2、如需禁止发布包含某个词语的文字，而不是替换过滤，请将其对应的替换内容设置为{<?=BANNED?>}即可；如需当用户发布包含某个词语的文字时，自动标记为需要人工审核，而不直接显示或替换过滤，请将其对应的替换内容设置为{<?=MOD?>}即可。<br />
</p>
</div>
        <h3>词语过滤<a href="index.php?admin_word/muladd<?=$setting['seo_suffix']?>" class="sgbtn">批量添加</a> </h3>
<div class="mainbox">
<form action="index.php?admin_word/add<?=$setting['seo_suffix']?>" method="post">
<table class="datalist fixwidth " >
<tr>
                                        <th><input class="checkbox" id="chkall" onclick="checkall('id[]')" type="checkbox" name="chkall"><b>删除</b></th>
<th><b>不良词语</b></th>
<th><b>替换为</b></th>
                                        <th><b>操作者</b></th>
</tr>
                                
<? if(is_array($wordlist)) { foreach($wordlist as $word) { ?>
<tr>
                                    <td><input type="checkbox" name="id[]" value="<?=$word['id']?>"/><input type="hidden" name="wid[]" value="<?=$word['id']?>" /></td>
                                    <td> <input type="text" name="find[]" class="txt" value="<?=$word['find']?>"/></td>
                                    <td><input type="text" name="replacement[]" class="txt" value="<?=$word['replacement']?>" /></td>
                                    <td><?=$word['admin']?></td>
</tr>
                               
<? } } ?>
<tr>
                                    <td>&nbsp;<input type="hidden" name="wid[]" value="0" /></td>
                                    <td> <input type="text" name="find[]" class="txt" /></td>
                                    <td><input type="text" name="replacement[]" class="txt"  /></td>
                                    <td>&nbsp;</td>
</tr>
                                
<tr class="nobg">
<td colspan="2">
<input class="btn" type="submit" name="submit" value="提 交"></td>
</tr>
</table>
</form>
</div>
</div>

</body>

</html>
